// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.common.model.PageSearch;
import com.fowo.api.entity.InventoryDetails;
import com.fowo.api.model.inventory.details.InventoryDetailsGetBinInventoryParam;
import com.fowo.api.model.inventory.details.InventoryDetailsGetBinInventoryResult;
import com.fowo.api.model.inventory.details.InventoryDetailsItemVo;
import com.fowo.api.model.inventory.details.InventoryDetailsSearchParamPo;
import com.fowo.api.model.inventory.details.InventoryDetailsVo;
import com.fowo.api.model.inventory.details.InventoryDetailsWarehouseInventoryParams;
import com.fowo.api.model.inventory.details.InventoryDetailsWarehouseInventoryResult;
import com.fowo.api.model.inventory.details.InventoryDetailsWarehouseStockParams;
import com.fowo.api.model.inventory.details.InventoryDetailsWarehouseStockResult;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface InventoryDetailsMapper extends BaseMapper<InventoryDetails> {
  Page<InventoryDetailsItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") InventoryDetailsSearchParamPo search
  );
  List<OptionItem<InventoryDetailsItemVo>> searchOptions(
    @Param("search") InventoryDetailsSearchParamPo search
  );
  List<InventoryDetailsItemVo> search(
    @Param("search") InventoryDetailsSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") InventoryDetailsSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") InventoryDetailsSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") InventoryDetailsSearchParamPo search);
  Long getIdByName(@Param("name") String name);

  List<Long> getIdsByName(@Param("list") List<String> list);

  String getNameById(@Param("id") Long id);

  List<Map<String, Object>> getNameByIds(@Param("ids") List<Long> ids);
  InventoryDetailsVo selectVoById(@Param("id") Long id);
  /**
   * 仓库库存 总数
   */
  int WarehouseStockTotal(
    @Param("params") InventoryDetailsWarehouseStockParams params
  );

  /**
   * 仓库库存（分页）
   */

  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<List<?>> warehouseStockPage(
    @Param("params") InventoryDetailsWarehouseStockParams params
  );

  /**
   * 仓库库存合计
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  Map warehouseStockSummary(
    @Param("params") InventoryDetailsWarehouseStockParams params
  );

  /**
   * 查询仓库下拉框
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<Map> warehouseStockwarehouseId();

  /**
   * 查询国家下拉框
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<Map> warehouseStockcountry();

  /**
   * 查询店铺下拉框
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<Map> warehouseStockshopId();

  /**
   * 查询分类下拉框
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<Map> warehouseStockclassify();

  /**
   * 查询属性下拉框
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<Map> warehouseStockattribute();

  /**
   * 查询品牌下拉框
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<Map> warehouseStockbrand();

  /**
   * 仓位库存 总数
   */
  int WarehouseInventoryTotal(
    @Param("params") InventoryDetailsWarehouseInventoryParams params
  );

  /**
   * 仓位库存（分页）
   */

  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<List<?>> warehouseInventoryPage(
    @Param("params") InventoryDetailsWarehouseInventoryParams params
  );

  /**
   * 仓位库存合计
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  Map warehouseInventorySummary(
    @Param("params") InventoryDetailsWarehouseInventoryParams params
  );

  /**
   * 查询仓库下拉框
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<Map> warehouseInventorywarehouseId();

  /**
   * 查询仓位类型下拉框
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<Map> warehouseInventorytype();

  /**
   * 查询分类下拉框
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<Map> warehouseInventoryclassify();

  /**
   * 查询属性下拉框
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<Map> warehouseInventoryattribute();

  /**
   * 查询品牌下拉框
   */
  @SuppressWarnings("MybatisXMapperMethodInspection")
  List<Map> warehouseInventorybrand();

  /**
   * 仓位库存
   */
  Page<InventoryDetailsGetBinInventoryResult> getBinInventory(
    Page page,
    @Param("search") InventoryDetailsGetBinInventoryParam param
  );
}
